<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html:form action="/user" onsubmit="return validate(this);">
<html:hidden property="action" value="findpasswordstep3"/>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="50%">
<tr>
    <td colspan="2">
        <br>
        <div style="width:50%;text-align:left;font-size:16px;font-weight:bold;" align="center">
            找回密码
        </div>
        <br>
    </td>
</tr>
<tr class="even">
    <td align="right" height="20">登录名&nbsp;</td>
    <td><c:out value="${user.loginName}"/>
    <html:hidden property="id"/>
    <html:hidden property="loginName"/></td>
</tr>
<tr class="even">
    <td align="right" height="20">密码提示&nbsp;</td>
    <td>
        <c:out value="${user.passwordQuestion}"/>
        <html:hidden property="passwordQuestion"/>
    </td>
</tr>
<tr class="even">
    <td align="right" height="20">密码答案&nbsp;</td>
    <td>
        <html:text property="passwordAnswer" size="16" maxlength="16"/>*
    </td>
</tr>
<tr>
    <td height="25"></td>
    <td>
        <html:submit value="下一步"/> *项必须输入
    </td>
</tr>
</table>
</html:form>
<script type="text/javascript">
    function validate(pForm)
    {
        if(pForm.passwordAnswer.value == "")
        {
            alert("[密码回答]必须填写");
            pForm.passwordAnswer.focus();
            return false;
        }
        return true;
    }
</script>
